From ba9f2b77e3b0ce0c20c74ccc041c8bfcbc54528b Mon Sep 17 00:00:00 2001 From: Jimi Xenidis Date: Sun, 3 Jun 2007 10:20:02 -0400 Subject: [PATCH] [POWERPC][FIRMWARE] Increase stack and move it to the biging of the data section. RTAS code needs more stack and moving the stack out of the text section makes oger debuggers (gdb) happy. Signed-off-by: Jimi Xenidis --- xen/arch/powerpc/of_handler/head.S | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/xen/arch/powerpc/of_handler/head.S b/xen/arch/powerpc/of_handler/head.S index f71ebb2121..e5d45c87fb 100644 --- a/xen/arch/powerpc/of_handler/head.S +++ b/xen/arch/powerpc/of_handler/head.S @@ -1,25 +1,28 @@ /* - * Copyright (C) 2005 Jimi Xenidis , IBM Corporation - * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * Copyright (C) IBM Corp. 2005, 2007 + * + * Authors: Jimi Xenidis */ + /* * Glue code for open-firmware client interface implementation. */ -#define OF_STACK_SIZE (32*1024) +#define OF_STACK_SIZE (64*1024) #include #include @@ -62,11 +65,6 @@ _ofh_lastarg: .long 0x0 .long 0x0 - . = 0x30 -_ofh_cih_stack_end: - .space OF_STACK_SIZE -_ofh_cih_stack: - _ofh_cih_continue: mflr r12 # r12 = &_ofh_work_space mr r11, r1 # r11 = orig stk ptr @@ -150,3 +148,9 @@ _GLOBAL(get_base) subf r3,r4,r5 mtlr r0 blr + + .data + .p2align 3 +_ofh_cih_stack_end: + .space OF_STACK_SIZE +_ofh_cih_stack: -- 2.30.2